<?php /* Smarty version 2.6.18, created on 2010-05-11 21:23:58
         compiled from cial/search.tpl */

$this->_cache_serials['C:/AppServ/www/xscms/template_c/\%%7E^7E7^7E72937C%%search.tpl.inc'] = '34b4f3197185c6b0ed100c7aef44a95f';

?><?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'cacheless', 'cial/search.tpl', 3, false),array('modifier', 'truncate', 'cial/search.tpl', 15, false),array('modifier', 'date_format', 'cial/search.tpl', 19, false),)), $this); ?>
<?php
function _smarty_tplfunc_34b4f3197185c6b0ed100c7aef44a95f_0(&$_smarty)
{
$_smarty->_tag_stack[] = array('cacheless', array()); $_block_repeat=true;smarty_block_cacheless($_smarty->_tag_stack[count($_smarty->_tag_stack)-1][1], null, $_smarty, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
		<div id="search">
       			<div class="dt"><strong><div>文章搜索结果</div></strong><span class="more">共搜索到<span class="redcolor"> <?php echo $_smarty->_tpl_vars['total']; ?>
 </span>篇符合条件的文章</span></div>
        		<div class="dd dot">
				<ul>
					<?php unset($_smarty->_sections['article']);
$_smarty->_sections['article']['name'] = 'article';
$_smarty->_sections['article']['loop'] = is_array($_loop=$_smarty->_tpl_vars['searchs']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty->_sections['article']['show'] = true;
$_smarty->_sections['article']['max'] = $_smarty->_sections['article']['loop'];
$_smarty->_sections['article']['step'] = 1;
$_smarty->_sections['article']['start'] = $_smarty->_sections['article']['step'] > 0 ? 0 : $_smarty->_sections['article']['loop']-1;
if ($_smarty->_sections['article']['show']) {
    $_smarty->_sections['article']['total'] = $_smarty->_sections['article']['loop'];
    if ($_smarty->_sections['article']['total'] == 0)
        $_smarty->_sections['article']['show'] = false;
} else
    $_smarty->_sections['article']['total'] = 0;
if ($_smarty->_sections['article']['show']):

            for ($_smarty->_sections['article']['index'] = $_smarty->_sections['article']['start'], $_smarty->_sections['article']['iteration'] = 1;
                 $_smarty->_sections['article']['iteration'] <= $_smarty->_sections['article']['total'];
                 $_smarty->_sections['article']['index'] += $_smarty->_sections['article']['step'], $_smarty->_sections['article']['iteration']++):
$_smarty->_sections['article']['rownum'] = $_smarty->_sections['article']['iteration'];
$_smarty->_sections['article']['index_prev'] = $_smarty->_sections['article']['index'] - $_smarty->_sections['article']['step'];
$_smarty->_sections['article']['index_next'] = $_smarty->_sections['article']['index'] + $_smarty->_sections['article']['step'];
$_smarty->_sections['article']['first']      = ($_smarty->_sections['article']['iteration'] == 1);
$_smarty->_sections['article']['last']       = ($_smarty->_sections['article']['iteration'] == $_smarty->_sections['article']['total']);
?>	
						<?php if (!($_smarty->_sections['article']['index'] % 2)): ?>
							<li>
						<?php else: ?>
							<li  class="li_bg">
						<?php endif; ?>
							<span style="width:270px">
							<a href="index.php?a=article&aid=<?php echo $_smarty->_tpl_vars['searchs'][$_smarty->_sections['article']['index']]['id']; ?>
"><?php echo ((is_array($_tmp=$_smarty->_tpl_vars['searchs'][$_smarty->_sections['article']['index']]['title'])) ? $_smarty->_run_mod_handler('truncate', true, $_tmp, 30) : smarty_modifier_truncate($_tmp, 30)); ?>
</a></span>
							<span style="width:150px">作者：
							<span class="fontcolor"><?php echo ((is_array($_tmp=$_smarty->_tpl_vars['searchs'][$_smarty->_sections['article']['index']]['author'])) ? $_smarty->_run_mod_handler('truncate', true, $_tmp, 12) : smarty_modifier_truncate($_tmp, 12)); ?>
</span></span>
							<span style="width:150px">发布时间：
							<span class="fontcolor"><?php echo ((is_array($_tmp=$_smarty->_tpl_vars['searchs'][$_smarty->_sections['article']['index']]['postTime'])) ? $_smarty->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span></span>
							<span style="width:100px">人气：
							<span class="fontcolor"><?php echo $_smarty->_tpl_vars['searchs'][$_smarty->_sections['article']['index']]['views']; ?>
</span></span>
						</li>
					<?php endfor; else: ?>
						<li>没有符合条件的文章</li>
					<?php endif; ?>
				</ul>
				<div class="page">
					<?php echo $_smarty->_tpl_vars['fpage']; ?>

				</div>
			</div>	
		</div>
		<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_cacheless($_smarty->_tag_stack[count($_smarty->_tag_stack)-1][1], $_block_content, $_smarty, $_block_repeat); }  array_pop($_smarty->_tag_stack); 
}



?>
